<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<html>
	<head>
		<title>JSP for AddNewsForm form</title>
	</head>
	<body>
		<center>
			<h3>
				修改新闻
			</h3>
			<html:errors />
			<html:form action="/update" method="post">
			<html:hidden property="id" value="${requestScope['OneSshnews.id']}"/>
				<table align="center" width="40%" border="1">
					<tr>
						<td>
							标题:
						</td>
						<td>
							<html:text property="title" />
							<html:errors property="title" />
						</td>
					</tr>
					<tr>
						<td>
							作者:
						</td>
						<td>
							<html:text property="author" />
							<html:errors property="author" />
						</td>
					</tr>
					<tr>
						<td>
							内容:
						</td>
						<td>
							<html:textarea property="content" style="width:180px;height:200px;"/>
							<html:errors property="content" />
						</td>
					</tr>
					<tr>
						<td>
							<html:submit value="提交" />
						</td>
						<td><html:cancel value="重置" />
						</td>
					</tr>
				</table>
			</html:form>
		</center>
	</body>
</html>

